/**
 * 应用常量配置
 */

// 默认头像配置
export const DEFAULT_AVATAR = 'https://picsum.photos/id/1005/200/200'

// 备用头像列表（如果主头像加载失败可以使用）
export const AVATAR_FALLBACKS = [
  'https://picsum.photos/id/1011/200/200',
  'https://picsum.photos/id/1012/200/200',
  'https://ui-avatars.com/api/?name=Admin&background=165dff&color=fff&size=200'
]

// 应用信息
export const APP_INFO = {
  name: '酒店管理系统',
  version: '1.0.0',
  copyright: '© 2024 酒店管理系统'
}

// API配置
export const API_CONFIG = {
  baseURL: '/api',
  timeout: 30000
}

// 分页配置
export const PAGINATION_CONFIG = {
  defaultPageSize: 10,
  pageSizeOptions: [10, 20, 50, 100]
}

// 日期格式
export const DATE_FORMAT = {
  date: 'YYYY-MM-DD',
  datetime: 'YYYY-MM-DD HH:mm:ss',
  time: 'HH:mm:ss'
}

// 状态映射
export const STATUS_MAP = {
  reservation: {
    1: { text: '待确认', color: 'orange' },
    2: { text: '已确认', color: 'green' },
    3: { text: '已入住', color: 'blue' },
    4: { text: '已取消', color: 'red' },
    5: { text: '已完成', color: 'gray' }
  },
  room: {
    1: { text: '可用', color: 'green' },
    2: { text: '已入住', color: 'red' },
    3: { text: '已预订', color: 'blue' },
    4: { text: '维护中', color: 'orange' },
    5: { text: '停用', color: 'gray' }
  }
}

// VIP等级
export const VIP_LEVELS = [
  { value: 0, label: '普通会员', color: 'gray' },
  { value: 1, label: '银卡会员', color: 'silver' },
  { value: 2, label: '金卡会员', color: 'gold' },
  { value: 3, label: '钻石会员', color: 'blue' }
]

